import Component from './index.vue';
import { columnList } from './../constants'

const meta = {
  componentName: 'BigScreen',
  title: '大屏配置',
  props: [
    {
      name: 'title',
      rules: {
        type: 'string',
        required: true,
      },
      desc: '大屏名称',
      defaultValue: '请输入大屏名称'
    },
    {
      name: 'size',
      propType: {
        type: 'string',
        required: false,
      },
      desc: '适用比例',
      defaultValue: '',
    },
    {
      name: 'desc',
      rules: {
        type: 'string',
        required: false,
      },
      desc: '大屏描述',
      defaultValue: '请输入大屏描述'
    },
    {
      name: 'imageId',
      rules: {
        type: 'string',
        required: false,
      },
      desc: '大屏缩略图',
      defaultValue: ''
    },
  ],
  configure: {
    basicProps: {
      title: '基础属性',
      override: [
        {
          name: 'title',
          setter: {
            componentName:'InputSetter',
            props:{
              maxlength: 12
            }
          },
        },
        {
          name: 'size',
          setter: {
            componentName: 'StringSetter',
          },
        },
        {
          name: 'desc',
          setter: {
            componentName:'InputSetter',
            props:{
              maxlength:500,
              type:'textarea'
            }
          },
        },
        {
          name:'imageId',
          setter: {
            componentName: 'UploadSetter',
          }
         }
      ]
    }
  },
}

export default {
  componentName: meta.componentName,
  componentMeta: meta,
  component: Component
}
